<HTML>
 
<!-- Mirrored from www.javapractices.com/apps/movies/javadoc/src-html/hirondelle/movies/util/Edit.html by HTTrack Website Copier/3.x [XR&CO'2010], Sun, 12 Jun 2011 17:30:18 GMT -->
<HEAD>
  <TITLE>
Edit.java
  </TITLE>
  <LINK REL ='stylesheet' TYPE='text/css' HREF='../../../../highlight.css' TITLE='Style'>
 </HEAD>
 <BODY>
<PRE>
<span class='keyword'>package</span> hirondelle.movies.util;<a name=line.1></a>
<a name=line.2></a>
<span class='comment'>/**<a name=line.3></a>
 Enumeration of kinds of edit operations.<a name=line.4></a>
   <a name=line.5></a>
 An edit operation is defined here as either an Add, Change, or Delete.<a name=line.6></a>
 */</span><a name=line.7></a>
<span class='keyword'>public</span> <span class='keyword'>enum</span> Edit {<a name=line.8></a>
  <a name=line.9></a>
  ADD(<span class='literal'>"Add"</span>), CHANGE(<span class='literal'>"Change"</span>), DELETE(<span class='literal'>"Delete"</span>);<a name=line.10></a>
  <a name=line.11></a>
  <span class='keyword'>@Override</span> <span class='keyword'>public</span> String toString(){<a name=line.12></a>
    <span class='keyword'>return</span> fName;<a name=line.13></a>
  }<a name=line.14></a>
  <a name=line.15></a>
  <span class='comment'>// PRIVATE //<a name=line.16></a>
</span>  <a name=line.17></a>
  <span class='comment'>/** Enums can only have a private constructor. */</span><a name=line.18></a>
  <span class='keyword'>private</span> Edit(String aName){<a name=line.19></a>
    fName = aName;<a name=line.20></a>
  }<a name=line.21></a>
  <a name=line.22></a>
  <span class='keyword'>private</span> String fName;<a name=line.23></a>
}<a name=line.24></a>
 <a name=line.25></a>
</PRE><a name=line.26></a>
 </BODY><a name=line.27></a>
<HTML><a name=line.28></a>
